package com.ruoyi.certificate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 打印机序列号认证情况对象 njt_serial_auth
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
public class NjtSerialAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String macAddress;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date authTime;

    /** 认证状态 (0: 失败, 1: 成功) */
    @Excel(name = "认证状态 (0: 失败, 1: 成功)")
    private Integer authStatus;

    /** 使用状态 (0: 未激活, 1: 激活) */
    @Excel(name = "使用状态 (0: 未激活, 1: 激活)")
    private Integer usageStatus;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationTime;

    /** 主体名称 */
    @Excel(name = "主体名称")
    private String entityName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 法人名称 */
    @Excel(name = "法人名称")
    private String legalPerson;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String district;

    /** 镇/乡 */
    @Excel(name = "镇/乡")
    private String town;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addressDetail;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setMacAddress(String macAddress) 
    {
        this.macAddress = macAddress;
    }

    public String getMacAddress() 
    {
        return macAddress;
    }
    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }
    public void setAuthStatus(Integer authStatus) 
    {
        this.authStatus = authStatus;
    }

    public Integer getAuthStatus() 
    {
        return authStatus;
    }
    public void setUsageStatus(Integer usageStatus) 
    {
        this.usageStatus = usageStatus;
    }

    public Integer getUsageStatus() 
    {
        return usageStatus;
    }
    public void setRegistrationTime(Date registrationTime) 
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() 
    {
        return registrationTime;
    }
    public void setEntityName(String entityName) 
    {
        this.entityName = entityName;
    }

    public String getEntityName() 
    {
        return entityName;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setLegalPerson(String legalPerson) 
    {
        this.legalPerson = legalPerson;
    }

    public String getLegalPerson() 
    {
        return legalPerson;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setTown(String town) 
    {
        this.town = town;
    }

    public String getTown() 
    {
        return town;
    }
    public void setAddressDetail(String addressDetail) 
    {
        this.addressDetail = addressDetail;
    }

    public String getAddressDetail() 
    {
        return addressDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("macAddress", getMacAddress())
            .append("authTime", getAuthTime())
            .append("authStatus", getAuthStatus())
            .append("usageStatus", getUsageStatus())
            .append("registrationTime", getRegistrationTime())
            .append("entityName", getEntityName())
            .append("phoneNumber", getPhoneNumber())
            .append("legalPerson", getLegalPerson())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("town", getTown())
            .append("addressDetail", getAddressDetail())
            .toString();
    }
}
